﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FacebookWrapper.ObjectModel;

namespace B13_Ex03_David_300512340_Alexey_321203689
{
    /// <summary>
    /// Pattern: Strategy.
    /// Role: ConcreteStrategy.
    /// Implements the algorithm using the Strategy interface.
    /// </summary>
    public class SearchPostByDate : ISearchPost
    {
        public bool SearchByParametrs(Post i_Feed, ValuesToSearch i_Obj)
        {
            return (i_Feed.CreatedTime >= i_Obj.StartDate) && (i_Feed.CreatedTime <= i_Obj.EndDate);
        }
    }
}
